#include "../pch.h"

namespace BFX
{
REFUniTextWriter::REFUniTextWriter()
{
}

REFUniTextWriter::~REFUniTextWriter()
{
}

const UCHAR	REFUniTextWriter::s_pszlNewLine[] =
#ifdef	_WIN32
	{ '\r', '\n', '\0' };
#else
	{ '\r', '\0' };
#endif

REFUniStringWriter::REFUniStringWriter()
{
}

REFUniStringWriter::~REFUniStringWriter()
{
}

// Writes a character to the text stream.
void REFUniStringWriter::Write(UCHAR ch)
{
	m_strBuffer.Append(ch);
}
// Writes a range of a character array to the text stream.
void REFUniStringWriter::Write(UCSTR pchBuffer, int iOffset, int nLength)
{
	m_strBuffer.Append(pchBuffer + iOffset, nLength);
}
// Writes a string to the text stream.
void REFUniStringWriter::Write(const UniString& strBuffer)
{
	m_strBuffer.Append(strBuffer);
}

UniString REFUniStringWriter::ToString() const
{
	return m_strBuffer;
}

}	//	namespace BFX
